package edu.sctu.xiangkun.day201506.day20150628;


/**
 * Created by user04 on 2015/6/28.
 */
public class ComparePrice {

    public static void getPrice(JsonAppbean jsonAppbean){

            int count1 = 0;
            int count2 = 0;
            for (ListAppbean listAppbean :jsonAppbean.list){
                if (Float.parseFloat(listAppbean.goods_price) > 100) {
                    count1++;
                }
                if(Float.parseFloat(listAppbean.goods_price) <= 100) {
                  count2++;
                }
            }
            System.out.println("价格大于100的数量:" + count1);
            System.out.println("价格大于100的数量:" + count2);
    }
}
